def media(*args)
  args.inject(0){|s, n| s + n} / args.size.to_f
end

p(lambda{

media 5, 10

}.call)